import numpy as np
a=np.random.randint(1,100,size=(3,4))
print('3*4的原数组:\n',a)
print('转置后4*3的数组:\n',a.T)
print('变形后2*6的数组:\n',a.reshape(2,6))